#include "SGNodeScale.h"
#include "CMatrix.h"
#include "SGTree.h"

SGNodeScale::SGNodeScale()
: m_scale(0, CVector3f())
{}

SGNodeScale::~SGNodeScale(){}

void SGNodeScale::doUpdate()
{
	CMatrix scale;
	scale.createScale(m_scale);

	CMatrix p = SGTREE.getValue();

	SGTREE.setValue(scale * p); //SCALE * WORLD
}